package com.elink.enginerring.company.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.elink.enginerring.company.co.CompanyCo;
import com.elink.enginerring.company.entity.Company;

public interface CompanyMapper {
    int deleteByPrimaryKey(String companyId);

    int insert(Company record);

    int insertSelective(Company record);

    Company selectByPrimaryKey(String companyId);

    int updateByPrimaryKeySelective(Company record);

    int updateByPrimaryKey(Company record);

	List<Map<String, Object>> selectList(@Param("co")CompanyCo co);

	int  selectCount(@Param("co")CompanyCo co);

	Map<String, Object> selectInfo(@Param("companyId")String companyId);
	
	@Update("update  company set auth_status = #{authStatus} where find_in_set(company_id,#{ids})")
	void addAuth(@Param("ids")String ids,@Param("authStatus")int authStatus);
}